<?php

/**
 * @see SmartL_Zend_Controller_Action
 */
require_once 'SmartL/Zend/Controller/Action.php';

require_once 'Doctrine/Query.php';
require_once 'Db/Record/Author.php';

class IndexController extends SmartL_Zend_Controller_Action 
{	
	public function indexAction() 
	{
		$query = new Doctrine_Query();
		$this->view->authors = $query->from('Db_Record_Author a')
			->orderBy('a.name')
			->fetchArray();
			
		$this->view->templates = $this->application->getTemplates();
	}
}